package com.aspose.cells;

class zbit extends zcj {
   zbit(zn var1, float var2, float var3, zbkq var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      float var2 = var1.f();
      float var3 = var1.g();
      float var4 = var1.h();
      float var5 = var1.i();
      float var6 = 0.0F;
      if (this.e.l.a.size() > 0) {
         var6 = var4 - var4 * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
      } else {
         var6 = var4 - var4 * 0.73583335F;
      }

      com.aspose.cells.b.a.b.a.ze var7 = new com.aspose.cells.b.a.b.a.ze();
      float var8 = (var5 - var6) / 2.0F;
      com.aspose.cells.b.a.b.zo[] var9 = new com.aspose.cells.b.a.b.zo[5];
      switch(this.e.a) {
      case 1:
      case 2:
         var9[0] = new com.aspose.cells.b.a.b.zo(var2, var3);
         var9[1] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var6, var3);
         var9[2] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var5 / 2.0F);
         var9[3] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var6, var3 + var5);
         var9[4] = new com.aspose.cells.b.a.b.zo(var2, var3 + var5);
         var7.b(var9);
         break;
      case 3:
      case 4:
         var9[0] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3);
         var9[1] = new com.aspose.cells.b.a.b.zo(var2 + var6, var3);
         var9[2] = new com.aspose.cells.b.a.b.zo(var2, var3 + var5 / 2.0F);
         var9[3] = new com.aspose.cells.b.a.b.zo(var2 + var6, var3 + var5);
         var9[4] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var5);
         var7.a(var9[0], var9[1]);
         var7.a(var9[1], var9[2]);
         var7.a(var9[2], var9[3]);
         var7.a(var9[3], var9[4]);
         var7.a(var9[4], var9[0]);
      }

      return var7;
   }

   void b() {
      this.a.d();
      com.aspose.cells.b.a.b.zq var1 = this.e.k();
      if (!this.e.m().a()) {
         var1.a(-(this.e.m().f() / 2.0F), -(this.e.m().f() / 2.0F));
      }

      float var2 = 0.0F;
      float var3 = zbul.a(this.e.n());
      if (this.e.p() != 7 && this.e.p() != 9) {
         if (this.e.p() == 0 || this.e.p() == 8) {
            var1.c(var1.h() - (var3 + var2));
         }
      } else {
         var1.a(var1.f() + var3 + var2);
      }

      if (this.e.j() == 270) {
         var1.b(var1.g() + 11.0F);
      }

      if (!this.e.t().equals("\n")) {
         zbul.a(this.a, this.e, var1, this.e.t(), this.e.s(), this.e.n(), this.e.o(), this.e.p(), this.e.q());
      }
   }
}
